
import { createBrowserRouter } from "react-router-dom";
import MyTable from "../pages/demo/MyTable";
import MyFrom from "../pages/demo/MyFrom";
import MyLayout from "../layout";
import G2PlotComponent from "../pages/panel";
import LogView from "../pages/panel";

const router = createBrowserRouter([
    {
        path:'/',
        element:<MyLayout />,
        children:[
            {
                path:'/MyTable',
                element:<MyTable />
            },{
                path:'/MyFrom/:id',
                element:<MyFrom />
            },{
                path:'/MyAntv',
                element:<LogView />
            }
        ]
    },
    
  ]);

export default router
